C Program to Print Pyramids and Patterns